Respiratory mechanics assessment